//package org.jeecg.modules.paycenter.controller;
//
//import com.alibaba.fastjson.JSONObject;
//import lombok.extern.slf4j.Slf4j;
//import org.jeecg.common.api.vo.Result;
//import org.jeecg.common.aspect.annotation.AutoLog;
//import org.jeecg.modules.paycenter.enums.PayChannelEnum;
//import org.jeecg.modules.paycenter.service.IMemberChannelService;
//import org.jeecg.modules.paycenter.service.MemberChannelFactory;
//import org.jeecg.modules.wlhy.hydriver.entity.HyDriver;
//import org.jeecg.modules.wlhy.utils.UserUtil;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
///**
// * 通联支付服务
// */
////@RestController
////@Slf4j
////@RequestMapping("/paycenter/tl")
//public class TongLianController {
//
//    @Autowired
//    private UserUtil userUtil;
//
//    //region 司机
//    @GetMapping(value = "/driver/getAcccount")
//    public Result<?> getDriverAcccount() {
//        IMemberChannelService memberChannel = MemberChannelFactory.getMemberChannel(PayChannelEnum.TONGLIAN);
//        if(!memberChannel.checkChannel()){
//            return Result.error("未开通支付服务");
//        }
//        HyDriver driver = userUtil.getDriver();
//        return memberChannel.getDriverAccount(driver);
//    }
//
//    @AutoLog(value = "司机提现")
//    @PostMapping(value = "/driver/tx")
//    public Result<?> driverTx(@RequestBody JSONObject data) throws Exception {
//
//        return null;
//    }
//
//    @AutoLog(value = "创建司机虚拟子账户")
//    @PostMapping(value = "/driver/createAcccount")
//    public Result<?> createDriverAcccount(@RequestBody JSONObject data) throws Exception {
//        IMemberChannelService memberChannel = MemberChannelFactory.getMemberChannel(PayChannelEnum.TONGLIAN);
//        if(!memberChannel.checkChannel()){
//            return Result.error("未开通支付服务");
//        }
//        HyDriver driver = userUtil.getDriver();
//        return memberChannel.createDriverAcccount(driver , data);
//    }
//
//    //endregion
//
//}
